package cn.cdeden.system.domain.vo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import cn.cdeden.system.domain.SysLgtypeConfig;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import cn.cdeden.common.excel.annotation.ExcelDictFormat;
import cn.cdeden.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;


/**
 * 登录方式配置视图对象 sys_lgtype_config
 *
 * @author Nick
 * @date 2024-12-10
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = SysLgtypeConfig.class)
public class SysLgtypeConfigVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @ExcelProperty(value = "主键ID")
    private Long id;

    /**
     * 配置名称
     */
    @ExcelProperty(value = "配置名称")
    private String configName;

    /**
     * 配置键名
     */
    @ExcelProperty(value = "配置键名")
    private String configKey;

    /**
     * 配置键值
     */
    @ExcelProperty(value = "配置键值")
    private String configValue;

    /**
     * 登录类型
     */
    @ExcelProperty(value = "登录类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_login_type")
    private String loginType;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 更新时间
     */
    @ExcelProperty(value = "更新时间")
    private Date updatedAt;


}
